package com.yhd.service.impl;

import com.yhd.entity.TCourseDetail;
import com.yhd.mapper.CourseDetailMapper;
import com.yhd.service.CourseDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseDetailServiceImpl implements CourseDetailService {
	@Autowired
	private CourseDetailMapper courseDetailMapper;
	
	@Override
	public List<TCourseDetail> getCodeByType(Integer courseId, String type) {
		TCourseDetail detail = new TCourseDetail();
		detail.setCourseId(courseId);
		detail.setType(type);
		return courseDetailMapper.select(detail);
	}
}
